<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<style>
    button {
        margin-bottom: 10px;
    }
    img {
        width: 300px;
        height: 200px;
    }
</style>
<body>
    <button class="ldh">吴家庆</button>
    <button class="lsf">刘少峰</button> <br>
    <img src="images/ldh.jpg" alt="" class="img">
    <script>
        var ldh = document.querySelector('.ldh')
        var lsf = document.querySelector('.lsf')
        var img = document.querySelector('.img')
        ldh.onclick = function(){
            img.src = 'images/ldh.jpg'
        }
        lsf.onclick = function(){
            img.src = 'images/u=2260021929,1508848523&fm=26&gp=0.jpg'
        }
    </script>
</body>
</html>